package com.example.spider.util;

import com.fasterxml.jackson.core.util.VersionUtil;
import com.fasterxml.jackson.databind.module.SimpleModule;

import java.util.BitSet;

public final class BitSetModule extends SimpleModule {

    public static final BitSetModule INSTANCE = new BitSetModule();

    private static final long serialVersionUID = 1L;

    public BitSetModule() {
        super("BitSetModule", VersionUtil.parseVersion("1.0", "spider", "spider"));

        addDeserializer(BitSet.class, BitSetDeserializer.INSTANCE);
        addSerializer(BitSet.class, BitSetSerializer.INSTANCE);

        // key serializers
//        addKeySerializer(ZonedDateTime.class, ZonedDateTimeKeySerializer.INSTANCE);

        // key deserializers
//        addKeyDeserializer(Duration.class, DurationKeyDeserializer.INSTANCE);
    }

    @Override
    public void setupModule(SetupContext context) {
        super.setupModule(context);
    }

}
